package day240508.e1;

public class Test {
    public static void main(String[] args) {
        Person person = new Person("小张");
        Cat cat = new Cat("小白");
        Dog dog = new Dog("小黑");
        Pig pig = new Pig("佩奇");
        //Fish fish = new Fish("小丑鱼");

        person.adopt(cat);
        person.adopt(dog);
        person.adopt(pig);
        //person.adopt(fish);
    }
}
